<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>客服面板</title>
    <link rel="stylesheet" href="__WEUI__/style/weui.css"/>
    <link rel="stylesheet" href="__WEUI__/example/example.css"/>
</head>
<body ontouchstart>

    <div class="page__bd">

    <div class="weui-panel weui-panel_access">
            <div class="weui-panel__hd">反馈系统</div>
            <div class="weui-panel__bd">
            <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="{$fans.headimgurl}" alt="">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title">{$feed.nickname}({$feed.create_time|friendlyDate})</h4>
                        <p class="weui-media-box__desc">{$feed.content}</p>
                    </div>
            </a>

            {volist name="chats" id="chat"}
                {if condition="$chat['type'] eq 1"}
                <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="{$chat.headimgurl}" alt="">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title">客服：{$chat.admin_nickname}({$chat.create_time|friendlyDate})</h4>
                        <p class="weui-media-box__desc">{$chat.content}</p>
                        <span class="weui-cell__ft"></span>
                    </div>
                </a>
                
                {else/}

                <a href="javascript:void(0);" class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <img class="weui-media-box__thumb" src="{$chat.headimgurl}" alt="">
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title">{$chat.nickname}({$chat.create_time|friendlyDate}) </h4>
                        <p class="weui-media-box__desc">{$chat.content}</p>
                    </div>
                </a>
                {/if}
            {/volist}

                
            </div>
            
    </div>

     <form action="{:url('feed/chatAdmin')}" method="post" class="form-horizontal ajax-form">
        
        
        {if condition="isset($cards_info)"}<div class="weui-cells__title">{$cards_info}</div>{else/}{/if}
        {if condition="isset($scans_info)"}<div class="weui-cells__title">{$scans_info}</div>{else/}{/if}
        <div class="weui-cells__title">回复</div>
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__bd">
                    <textarea class="weui-textarea" name="content" placeholder="珍惜每一次回复，因为这是经营老顾客的基础" rows="3"></textarea>
                    <div class="weui-textarea-counter"><span>0</span>/200</div>
                </div>
            </div>
        </div>

        <div class="weui-btn-area">
        <input type="hidden" name="feed_id"  value="{$feed.id}">
        <input type="hidden" name="openid"  value="{$fans.openid}">
        <input type="hidden" name="admin_openid"  value="{$admin_openid}">
        <input type="submit"  class="weui-btn weui-btn_primary"  value="确认">
           
        </div>
    </div>
    <div class="page__ft">
        <a href="javascript:home()"><img src="__WEUI__/example/images/icon_footer_link.png" /></a>
    </div>
    
    </form>
</div>

   
</body>
<script type="text/javascript" src="__JS__/jquery.min.js"></script>
<script src="__JS__/plugins/layer/layer.min.js" type="text/javascript"></script>

<script type="text/javascript" src="__JS__/common.js"></script>
<script type="text/javascript" src="__JS__/toast.js"></script>
</html>

